

<div class="col-sm-12 mt20" >
<div class="panel panel-default">
<div class="panel-body">
<div class="col-sm-12">

    <div class="row">
        
        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="searchform.name" placeholder="产品名">
        </div>
        
        <div class="col-sm-2 col-sm-offset-8">
            <button class="btn btn-block btn-info" ng-click="load()">搜索</button> 
        </div>

    </div>

</div>
</div>
</div>
<!-- searchArea -->

<div class="panel panel-default">
    <div class="panel-body">
        <table class="table table-condensed table-hover table-bordered">
            <thead>
                <tr>
                    <th class="col-md-4 text-center">产品名称</th>
                    <th class="col-md-2 text-center">产品编号</th>
                    <th class="col-md-1 text-center">成本价格</th>
                    
                    <th class="col-md-1 text-center">加价</th>
                    <th class="col-md-1 text-center">加价后成本</th>

                    <th class="col-md-1 text-center">指导价格</th>

                    <th class="col-md-1 text-center">排序</th>
                    <th class="col-md-1 text-center">操作</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="obj in objs">
                    <td class="">
                        {{obj.name}}<br>
                        {{obj.code}}<br>
                        {{obj.sale_belong}}
                    </td>
                    <td class="text-center">
                        {{obj.code}}
                    </td>
                    <td class="text-center">
                        {{obj.cost_price | currency : '￥'}}
                    </td>
                    
                    <td class="text-center">
                    <input class="form-control input-sm" type="number" 
                        value={{obj.add_price}} ng-model="obj.add_price">
                        <a ng-click="addprice(obj)" class="btn btn-info btn-xs btn-block mt5">设置</a>
                    </td>
                    <td class="text-center">
                        {{obj.cost_price + obj.add_price | currency : '￥'}}
                    </td>
                    <td class="text-center">
                        {{obj.guide_price | currency : '￥'}}
                    </td>
                    <td class="text-center">
                        <input class="form-control input-sm" type="text" value="{{obj.asort}}" ng-model="obj.asort">
                        <a ng-click="asort(obj)" class="btn btn-info btn-xs btn-block mt5">设置</a>
                    </td>
                    <td class="text-center">
                        <a ng-if="obj.isallow == '0'" ng-click="up(obj)" class="btn btn-success btn-xs">上架</a>
                        <a ng-if="obj.isallow == '1'" ng-click="down(obj)" class="btn btn-info btn-xs">下架</a>

                        <a ng-click="setImages(obj)" class="btn btn-default btn-xs" 
                            ng-if="what == 'xitong'"
                        >微店设置</a>

                        <a ng-click="setPoster(obj)" class="btn btn-default btn-xs" 
                            ng-if="what == 'xitong'"
                        >设置海报</a>

                    </td>
                </tr>
            </tbody>
        </table>
        <div class="text-right">
             <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="load()" previous-text="上一页" next-text="下一页"
                first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
                class="m-t-none m-b">
            </pagination>
        </div>
    </div>
</div>

</div>